/*
 * @Author: your name
 * @Date: 2021-01-26 20:14:18
 * @LastEditTime: 2021-01-26 20:46:03
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \vue-admin-seed\src\store\modules\user.js
 */

const state = {
  token:'asd',
  name: '',
  avatar: '',
  introduction: '',
  roles: []
}

const mutations = {
  SET_TOKEN: (state) => {
    console.log('SET_TOKEN :>> ', state.token);
  },
}

const actions = {
  login({ commit }) {
     console.log('111 :>> ', 111);
  },
  getInfo({ commit, state }) {

  },
  logout({ commit, state, dispatch }) {

  },
  resetToken({ commit }) {
    
  },
  async changeRoles({ commit, dispatch }, role) {

  }
}
export default {
  namespaced: true,
  state,
  mutations,
  actions
}
